package com.zhongzhi.springboot.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.zhongzhi.common.Common;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
/**
 * 测试数据对象
 * @author Administrator
 *
 */
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class MeasureTabShow {
	private Integer id;
	//机号
	private String deviceNum;
	//机型名
	private String typeName;
	//开始时间
	private String startTime;
	//结束时间
	private String endTime;
	//所选工位名
	private String stationName;
	//数据a下沉量
	private Double sinkA;
	//数据a开始高度
	private Double startAltitudeA;
	//数据b下沉量
	private Double sinkB;
	//数据b开始高度
	private Double startAltitudeB;
	//本次测量备注
	private String remarks;
	
	public MeasureTabShow(MeasureShow measureShow) {
		this.id=measureShow.getId();
		this.deviceNum=measureShow.getDeviceNum();
		this.typeName=measureShow.getTypeName();
		this.stationName=measureShow.getStationName();
		this.sinkA=measureShow.getSinkA();
		this.sinkB=measureShow.getSinkB();
		this.startAltitudeA=measureShow.getStartAltitudeA();
		this.startAltitudeB=measureShow.getStartAltitudeB();
		this.remarks=measureShow.getRemarks();
		
		this.startTime = Common.getDateTimeString(measureShow.getStartTime());
		this.endTime = Common.getDateTimeString(measureShow.getEndTime());
		
	}

	
}
